package com.attendance.common;

import java.util.Date;

public class DateInsert {
    public static int getWeekToMonth(Date now) {

        int week;
        int we = now.getDay() / 7;

        week = Integer.parseInt(String.valueOf(now.getYear() + now.getMonth() + we));
        return week;
    }

    public static int getMonth(Date now){
        int month;
        month= Integer.parseInt(String.valueOf(now.getYear()+now.getMonth()));
        return month;
    }
}
